<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2021/9/14
  Time: 10:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath();%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form id="user_update_form">
    <div class="form-group">
        <label for="name">用户名称:</label>
        <input type="hidden" name="uid" value="${user.uid}"><br>
        <input type="text" class="form-control" name="uname" value="${user.uname}" id="name" placeholder="请输入用户名称">
    </div>
    <div class="form-group">
        <label for="name">角色名称:</label><br>
        <c:forEach items="${roles}" var="l">
            <input type="checkbox" name="rid" value="${l.rid}" <c:if test="${rids.contain(role.rid)}">checked</c:if>
            >${l.rname}
        </c:forEach>
    </div>
</form>
</body>
</html>
